﻿using YNTK.Dependency;

namespace YNTK.EIMS.Entitys.Suppliers
{
    /// <summary>
    /// 供应商数据传输模型
    /// </summary>
    [SuppressSniffer]
    public class SupplierListDto
    {
        /// <summary>
        /// 供应商id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 所属机构id
        /// </summary>
        public string mechanismId { get; set; }

        /// <summary>
        /// 所属机构名称
        /// </summary>
        public string mechanismName { get; set; }

        /// <summary>
        /// 供应商分类id
        /// </summary>
        public string classifyId { get; set; }

        /// <summary>
        /// 供应商分类名称
        /// </summary>
        public string classifyName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? creatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        public string creatorUserId { get; set; }

        /// <summary>
        /// 创建用户姓名
        /// </summary>
        public string creatorUserName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? lastModifyTime { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string supplierName { get; set; }

        /// <summary>
        /// 供应商编号
        /// </summary>
        public string supplierNo { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string contact { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string contactWay { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        public int viewCount { get; set; }

        /// <summary>
        /// 共享范围(0.全组织 1.特定机构 2.特定角色 3.特定用户 4.仅自己可见)
        /// </summary>
        public int sharedScope { get; set; }

        /// <summary>
        /// 共享范围文本
        /// </summary>
        public string sharedScopeText { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        public long? sortCode { get; set; }

        /// <summary>
        /// 启用/禁用,1.启用
        /// </summary>
        public int? enabledMark { get; set; }
    }

    /// <summary>
    /// 供应商下拉数据传输模型
    /// </summary>
    [SuppressSniffer]
    public class SupplierSelectDto
    {
        /// <summary>
        /// 供应商id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string supplierName { get; set; }

        /// <summary>
        /// 供应商编号
        /// </summary>
        public string supplierNo { get; set; }
    }

}
